﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Dos.ORM;

namespace GongXianDCUI.Models
{
    /// <summary>
    /// 文章布局
    /// </summary>
    [Table("LayoutArticle")]
    [Serializable]
    public partial class LayoutArticle : Entity
    {
        #region Model
        private string _Rname;
        private int? _RmaxCount;
        private int? _RarticleCount;
        private string _Rbz;

        /// <summary>
        /// 
        /// </summary>
        [Field("Rname")]
        public string Rname
        {
            get { return _Rname; }
            set
            {
                this.OnPropertyValueChange("Rname");
                this._Rname = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("RmaxCount")]
        public int? RmaxCount
        {
            get { return _RmaxCount; }
            set
            {
                this.OnPropertyValueChange("RmaxCount");
                this._RmaxCount = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("RarticleCount")]
        public int? RarticleCount
        {
            get { return _RarticleCount; }
            set
            {
                this.OnPropertyValueChange("RarticleCount");
                this._RarticleCount = value;
            }
        }
        /// <summary>
        /// 
        /// </summary>
        [Field("Rbz")]
        public string Rbz
        {
            get { return _Rbz; }
            set
            {
                this.OnPropertyValueChange("Rbz");
                this._Rbz = value;
            }
        }

        public List<LayoutData> LayoutDataList
        {
            get
            {
                return layoutDataList;
            }

            set
            {
                layoutDataList = value;
            }
        }
        #endregion

        #region Method
        /// <summary>
        /// 获取实体中的主键列
        /// </summary>
        public override Field[] GetPrimaryKeyFields()
        {
            return new Field[] {
            };
        }
        /// <summary>
        /// 获取列信息
        /// </summary>
        public override Field[] GetFields()
        {
            return new Field[] {
                _.Rname,
                _.RmaxCount,
                _.RarticleCount,
                _.Rbz,
            };
        }
        /// <summary>
        /// 获取值信息
        /// </summary>
        public override object[] GetValues()
        {
            return new object[] {
                this._Rname,
                this._RmaxCount,
                this._RarticleCount,
                this._Rbz,
            };
        }
        /// <summary>
        /// 是否是v1.10.5.6及以上版本实体。
        /// </summary>
        /// <returns></returns>
        public override bool V1_10_5_6_Plus()
        {
            return true;
        }
        #endregion

        #region _Field
        /// <summary>
        /// 字段信息
        /// </summary>
        public class _
        {
            /// <summary>
            /// * 
            /// </summary>
            public readonly static Field All = new Field("*", "LayoutArticle");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field Rname = new Field("Rname", "LayoutArticle", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field RmaxCount = new Field("RmaxCount", "LayoutArticle", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field RarticleCount = new Field("RarticleCount", "LayoutArticle", "");
            /// <summary>
			/// 
			/// </summary>
			public readonly static Field Rbz = new Field("Rbz", "LayoutArticle", "");
        }
        #endregion

        private List<LayoutData> layoutDataList;
        
    }


}
